package cn.edu.scau.cmi.wujiaxian.exercise5;

public class Student {
	
	private int age;
	
	int number;
	public Student(int n) {
		number = n;
	}
	public Student() {
	}
	void speak() {
		System.out.println("Student类的包名是tom.jiafei,我的学号：" + number);
	}
	public void setAge(int age) {
		if (age >= 7 && age <= 28) {
			this.age = age;
		}
	}
	public int getAge() {
		return age;
	}
	
}

